package org.rambadger.command.view;

import com.yammer.dropwizard.auth.Auth;
import com.yammer.dropwizard.views.View;
import org.rambadger.command.auth.AuthUser;

public class IndexView extends View {

        boolean area_home = true;
        boolean hasAdmin = false;
        String title;
        public IndexView(@Auth(required = false) AuthUser user){
            super("/index.mustache");
            this.title = ": " + user.getUsername()+"'s Launchpad";
            this.hasAdmin = user.hasAdmin();
        }

}
